﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="user_show.aspx.cs" Inherits="DTcms.Web.admin.users.user_show" %>
<%@ Import namespace="DTcms.Common" %>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>会员信息</title>
<link href="../../scripts/artdialog/ui-dialog.css" rel="stylesheet" type="text/css" />
<link href="../skin/default/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="../../scripts/jquery/jquery-1.11.2.min.js"></script>
<script type="text/javascript" charset="utf-8" src="../../scripts/jquery/Validform_v5.3.2_min.js"></script>
<script type="text/javascript" charset="utf-8" src="../../scripts/datepicker/WdatePicker.js"></script>
<script type="text/javascript" charset="utf-8" src="../../scripts/artdialog/dialog-plus-min.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/laymain.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/common.js"></script>
<style>
  .form_table { border-top:solid 1px #eee; border-left:solid 1px #eee; }
  .form_table td { border-bottom:solid 1px #eee; border-right:solid 1px #eee;}
  .form_table .bt { width:10%; text-align:center; height:40px; background-color:#f6f6f6 }
  .form_table .co { width:40%; height:40px; padding:0 15px; }
</style>
<script type="text/javascript">
    $(function () {
        $("#btnUpgrade").click(function () { EditUserGroup(); });   //确认订单
        $("#btnReadcount").click(function () { EditUserReadcount(); });   //确认订单
    });

    //修改会员等级
    function EditUserGroup() {
        var winDialog = top.dialog({
            title: '修改会员等级',
            url: 'dialog/dialog_group.aspx?user_id=' + $("#hidUserID").val(),
            width: 550,
            height: 220,
            data: window //传入当前窗口
        }).showModal();
    }

    //修改会员查看次数
    function EditUserReadcount() {
        var winDialog = top.dialog({
            title: '重置查看次数',
            url: 'dialog/dialog_readcount.aspx?user_id=' + $("#hidUserID").val(),
            width: 550,
            height: 220,
            data: window //传入当前窗口
        }).showModal();
    }

    //发送AJAX请求
    function sendAjaxUrl(winObj, postData, sendUrl) {
        $.ajax({
            type: "post",
            url: sendUrl,
            data: postData,
            dataType: "json",
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                top.dialog({
                    title: '提示',
                    content: '尝试发送失败，错误信息：' + errorThrown,
                    okValue: '确定',
                    ok: function () { }
                }).showModal(winObj);
            },
            success: function (data, textStatus) {
                if (data.status == 1) {
                    winObj.close().remove();
                    var d = dialog({ content: data.msg }).show();
                    setTimeout(function () {
                        d.close().remove();
                        location.reload(); //刷新页面
                    }, 2000);
                } else {
                    top.dialog({
                        title: '提示',
                        content: '错误提示：' + data.msg,
                        okValue: '确定',
                        ok: function () { }
                    }).showModal(winObj);
                }
            }
        });
    }
</script>
</head>

<body class="mainbody">
<form id="form1" runat="server">
<!--导航栏-->
<div class="location">
  <a href="user_list.aspx" class="back"><i></i><span>返回列表页</span></a>
  <a href="../center.aspx" class="home"><i></i><span>首页</span></a>
  <i class="arrow"></i>
  <a href="user_list.aspx"><span>会员管理</span></a>
  <i class="arrow"></i>
  <span>会员信息</span>
</div>
<div class="line10"></div>
<!--/导航栏-->

<!--内容-->
<div id="floatHead" class="content-tab-wrap">
  <div class="content-tab">
    <div class="content-tab-ul-wrap">
      <ul>
        <li><a class="selected" href="javascript:;">基本资料</a></li>
      </ul>
    </div>
  </div>
</div>

<div class="tab-content">
<div style=" padding:15px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="form_table">
  <tr>
    <td class="bt">所属组别：</td>
    <td class="co">
        <%=new DTcms.BLL.user_groups().GetTitle(model.group_id) %>
        <input type="hidden" id="hidUserID" value="<%=model.id %>" />
        <%=model.upgrade_time!=null ? "(修改日期："+model.upgrade_time+")":"" %>
    </td>
    <td class="bt">微信昵称：</td>
    <td class="co"><%=model.user_name %></td>
  </tr>
  <tr>
    <td class="bt">真实姓名：</td>
    <td class="co"><%=model.nick_name %></td>
    <td class="bt">手机号码：</td>
    <td class="co"><%=model.mobile %></td>
  </tr>
  <tr>
    <td class="bt">账户余额：</td>
    <td class="co"><%=model.amount %> 元</td>
    <td class="bt">注册时间：</td>
    <td class="co"><%=model.reg_time %></td>
  </tr>
  <tr>
    <td class="bt">上次查看时间：</td>
    <td class="co"><%=string.IsNullOrWhiteSpace( model.readtime +"")?"":(model.readtime+"")%> </td>
    <td class="bt">上次查看次数（IOS）：</td>
    <td class="co"><%=model.readcount %> </td>
  
  </tr>
     <tr>
   
   
    <td class="bt">总查看次数：</td>
    <td class="co"><%=model.readcountTotal %></td>
  </tr>
</table>
</div>
</div>
<!--/内容-->

<!--工具栏-->
<div class="page-footer">
  <div class="btn-wrap">
    <input id="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript: history.back(-1);" />
    <input id="btnUpgrade" runat="server" type="button" value="会员升级" class="btn green" visible="false" />
      <input id="btnReadcount" runat="server" type="button" value="重置查看次数" class="btn green" visible="false" />
  </div>
</div>
<!--/工具栏-->

</form>
</body>
</html>